import 'package:flutter/material.dart';
const String MONEY="¥";
const String WX_APPID = 'wx5bd46e44d72c9209';
const String WECHAT_UNIVERSAL_LINK="https://panda.dmooo.com/";
const String WX_APP_SECRET = 'fcbc298f768513244ee31670dbce534f';
const String TOKEN="token";
const String UID="uid";
const String INFORM="inform";
const String PHONE="phone";
const String PWD="pwd";
const String ALIPAY="alipay";
const String GROUP_NAME="group_name";
const String GROUP_ID="group_id";
const String TRUENAME="truename";
const double BIG_FONT_SIZE=32;
const double NORMAL_FONT_SIZE=27;
const double SMALL_FONT_SIZE=24;
const double MINI_FONT_SIZE=20;
const double NINIEST_FONT_SIZE=18;

const double DP_100=100;
const double DP_160=160;
const double DP_200=200;
const double DP_250=250;
const double DP_280=280;
const double DP_300=300;
const double DP_320=320;
const double DP_450=450;
const double DP_340=340;
const double DP_350=350;
const double DP_90=90;

const double DP_120=120;
const double DP_150=150;
const double DP_180=180;
const double DP_15=15;
const double DP_40=40;
const double DP_20=20;
const double DP_50=50;
const double DP_30=30;
const double DP_60=60;
const double DP_80=80;
const double DP_10=10;
const double DP_8=8;
const mainColor=Color(0xff42bd90);
const divideColor=Color.fromARGB(255,246,246,246);
const f0Color=Color.fromARGB(255, 240, 240, 240);
const white=Colors.white;
const black=Colors.black;
const black_99=Color.fromARGB(255, 99, 99, 99);
const grey=Color.fromARGB(88, 194,190,190);
Color hexToColor(String s) {
  // 如果传入的十六进制颜色值不符合要求，返回默认值
  if (s == null || s.length != 7 || int.tryParse(s.substring(1, 7), radix: 16) == null) {
    return mainColor;
  }

  return new Color(int.parse(s.substring(1, 7), radix: 16) + 0xFF000000);
}